package com.hujun.modules.product.domain;

import java.io.Serializable;
import java.util.List;

/**
 * 商品分类实体类
 * @author huj
 *
 */
public class ProductClassify implements Serializable {

	private static final long serialVersionUID = 1L;
	
	/**
	 * 分类id
	 */
	private Long classifyId;
	
	/**
	 * 父级分类
	 */
	private Long parentId;
	
	/**
	 * 分类名称
	 */
	private String classifyName;
	
	/**
	 * 层级
	 */
	private Integer level;
	
	/**
	 * 排序号
	 */
	private Integer sortNum;
	
	/**
	 * 子数据
	 */
	private List<ProductClassify> children;

	public Long getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(Long classifyId) {
		this.classifyId = classifyId;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getClassifyName() {
		return classifyName;
	}

	public void setClassifyName(String classifyName) {
		this.classifyName = classifyName;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public List<ProductClassify> getChildren() {
		return children;
	}

	public void setChildren(List<ProductClassify> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "ProductClassify [classifyId=" + classifyId + ", parentId=" + parentId + ", classifyName=" + classifyName
				+ ", level=" + level + ", sortNum=" + sortNum + ", children=" + children + "]";
	}
	

}
